-- GENERATED SPELL FOR [Bash'ir Raider] --


function spell0_22241(pUnit, Event) --@Energy Flare,n/a--
pUnit:FullCastSpellOnTarget(35922,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22241', 5307, 1)
end

function Sorts_22241(pUnit, Event)
local choix_sorts_22241 = math.random(0, 0)
if choix_sorts_22241 == 0 then
pUnit:RegisterEvent('spell0_22241', 1, 1)
end
end

function mob22241_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22241', math.random(1500, 3000), 1)
end

function mob22241_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22241_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22241_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22241, 1, 'mob22241_Action')
RegisterUnitEvent(22241, 2, 'mob22241_Leave')
RegisterUnitEvent(22241, 3, 'mob22241_Kill')
RegisterUnitEvent(22241, 4, 'mob22241_Die')
